<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加预约</title>
<style type="text/css">
<!--
body {
	background-image: url(/dadaocms/Public/images/frame/allbg.gif);
}
-->
</style>
<link href="/dadaocms/Public/css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/My97DatePicker/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/dadaocms/Public/ueditor/editor_api.js"></script>
<script type="text/javascript" src="/dadaocms/Public/ueditor/lang/zh-cn/zh-cn.js"></script>
<link href="/dadaocms/Public/ueditor/themes/default/_css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="/dadaocms/Public/ueditor/umeditor.config.js"></script>
<script type="text/javascript">
$(function(){
	  $("#form1").submit(function(){
			if($("#topid").val()==''){
				alert("上级栏目不能为空");	
				return false;
			}
			if($("#typename").val()==''){
				alert("栏目名称必须填写");	
				return false;
			}			
	  }); 
		   
});
</script>
</head>
<body topmargin="8">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="65%" height="30">&nbsp; <IMG height=14 src="/dadaocms/Public/images/frame/book1.gif" width=20>&nbsp;<u>栏目</u><a href="__URL__/index"><u>管理</u></a> -&gt;栏目修改 </td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" >
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
<form name="form1" id="form1" action="" enctype="multipart/form-data" method="post">
  <input type="hidden" name="id" value="{$list.id}" />
  <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">
    <tr>
      <td width="400%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%">&nbsp;内容模型：</td>
            <td width='89%'>{$channel.channelname}
              <select name="channelid2" id="channelid2" style="display:none;">
                <volist name="channel" id="vo">
                  <if condition="$vo['id'] eq $list['channelid']">
                    <option value="{$vo.id}" selected="selected">{$vo.channelname}</option>
                    <else />
                    <option value="{$vo.id}">{$vo.channelname}</option>
                  </if>
                </volist>
              </select></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="400%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%">&nbsp;上级栏目：</td>
            <td width='89%'><label for="topid"></label>
              <select name="topid" size="10" id="topid" style="width:400px">
                <option value="0" 
                
                
                <if condition="!$list['topid']">selected</if>
                >根栏目
                
                
                </option>
                <volist name="tree" id="vo"> <option value="{$vo.id}" 
                  
                  
                  <if condition="$vo['id'] eq $list['topid']">selected</if>
                  >| {$vo.Count|str_repeat='----',###}
                  
                  
                  <neq name="vo.Count" value="1">| -- </neq>
                  
                  
                  {$vo.typename}
                  
                  
                  </option>
                </volist>
              </select></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="400%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%">&nbsp;栏目名称：</td>
            <td width='89%'><input name="typename" type="text" id="typename" value="{$list.typename}" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="400%" height="24" class="bline"><table width="98%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%">&nbsp;栏目属性：</td>
            <td width='89%'><table width="100%" border="0" id="needset2" cellspacing="0" cellpadding="0">
                <tbody>
                  <tr>
                    <td><input name="shuxing" type="radio" id="radio" value="0" 
                      
                      <if condition="$list['shuxing'] eq 0">checked="checked"</if>
                      />
                      最终列表栏目（允许在本栏目发布文档，并生成文档列表） <br />
                      <input name="shuxing" type="radio" id="radio1" value="1" 
                      
                      <if condition="$list['shuxing'] eq 1">checked="checked"</if>
                      />
                      频道封面（栏目本身不允许发布文档） <br />
                      <input name="shuxing" type="radio" id="radio2" value="2" 
                      
                      <if condition="$list['shuxing'] eq 2">checked="checked"</if>
                      />
                      外部连接（在&quot;文件保存目录&quot;处填写网址）
                      <input type="text" name="wburl" id="wburl" value="{$list.wburl}" style="display:none;"/>
                      <script type="text/javascript">
                    $(function(){
						var radio2 = $("#radio2:checked").val();
						if(radio2 == 2){$("#wburl").show();}
						$("input[name='shuxing']").click(function(){
							var val = $(this).val();
							if(val == 2){$("#wburl").show();}
							else{$("#wburl").hide();}
							console.debug($(this).val());
						});
						
					});
                    </script></td>
                  </tr>
                </tbody>
              </table></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td width="400%" height="24" class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="adset">
          <tbody>
            <tr>
              <td width="11%" height="26">封面模板：</td>
              <td width="89%"><input name="tempindex" type="text" value="{$list.tempindex}" class="tempindex"/>
                &nbsp; （模板位置在Tpl/Home/Arctype/下）</td>
            </tr>
            <tr>
              <td height="26">列表模板：</td>
              <td><input name="templist" type="text"  value="{$list.templist}"/>
                &nbsp; （模板位置在Tpl/Home/Arctype/下）</td>
            </tr>
            <tr>
              <td height="26">文章模板：</td>
              <td><input name="temparticle" type="text"  value="{$list.temparticle}"/>
                &nbsp; （模板位置在Tpl/Home/Archive/下） </td>
            </tr>
          </tbody>
        </table></td>
    </tr>
    <tr>
      <td width="400%" height="24" class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="adset">
          <tbody>
            <tr>
              <td width="11%" height="26">seo标题：</td>
              <td width="89%"><input name="seotitle" type="text" class="tempindex" id="seotitle" value="{$list.seotitle}" style="width:430px"/>
                &nbsp; （模板位置在Tpl/Home/Arctype/下）</td>
            </tr>
            <tr>
              <td height="26">栏目关键词：</td>
              <td><input name="seokeywords" type="text" id="seokeywords"  value="{$list.seokeywords}" style="width:430px"/>
                &nbsp; （模板位置在Tpl/Home/Arctype/下）</td>
            </tr>
            <tr>
              <td height="26">栏目描述：</td>
              <td><textarea name="seodescription"  style="width:427px" rows="4" id="seodescription">{$list.seodescription}</textarea>
                &nbsp; （模板位置在Tpl/Home/Archive/下） </td>
            </tr>
          </tbody>
        </table></td>
    </tr>
    <tr>
      <td width="100%" height="24" class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="content_off">
          <tbody>
            <tr>
              <td width="11%" height="26">栏目内容：</td>
              <td width="89%"><script name="content" type="text/plain" id="content" style="width:100%">{$list.content}</script> 
                <script type="text/javascript">
        var ue = UM.getEditor('content',{initialFrameHeight:300});
    </script></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
    <tr>
      <td></td>
    </tr>
  </table>
  <!-- //高级参数 -->
  
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
    <tr>
      <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="10%">&nbsp;</td>
            <td width="90%"><table width="214" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="115"><input name="imageField" type="image" src="/dadaocms/Public/images/frame/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
                  <td width="99"><img src="/dadaocms/Public/images/frame/button_reset.gif" width="60" height="22" border="0" onClick="window.opener.location.reload();window.close();" style="cursor:pointer"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>